package com.example.weight.wormHandle.cultivate;

import java.io.Serializable;

public class MiddleWormBox implements Serializable {
    private String id;
    private String batch;
    private String group;
    private String tinyNum;
    private String smallNum;
    private Double totalWeight;
    private Double netWeight;
    private Integer boxQuality;
    private Double perBox;
    private Double perBoxMaterial;
    private String beginDate;
    private String serialId;
    private String goWhere;
    private String middleNum;
    private Double middleQuality;
    private Double eggQuality;
    private Double target;
    private Double fact;
    private String outDate;
    private Double smallBoxWeight;

    public MiddleWormBox(String id, String batch, String group, String tinyNum, String smallNum
            , Double totalWeight, Double netWeight, Integer boxQuality, Double perBox
            , String beginDate, String serialId, String goWhere, String middleNum, Double middleQuality
            , Double eggQuality, Double target, Double fact, String outDate) {
        this.id = id;
        this.batch = batch;
        this.group = group;
        this.tinyNum = tinyNum;
        this.smallNum = smallNum;
        this.totalWeight = totalWeight;
        this.netWeight = netWeight;
        this.boxQuality = boxQuality;
        this.perBox = perBox;
        this.beginDate = beginDate;
        this.serialId = serialId;
        this.goWhere = goWhere;
        this.middleNum = middleNum;
        this.middleQuality = middleQuality;
        this.eggQuality = eggQuality;
        this.target = target;
        this.fact = fact;
        this.outDate = outDate;
    }

    public MiddleWormBox() {
    }

    public MiddleWormBox(String id, String batch, String wormGroup, String hatchBoxNumber, String smallBugBreedBoxNumber) {
        this.id = id;
        this.batch = batch;
        this.group = wormGroup;
        this.tinyNum = hatchBoxNumber;
        this.smallNum = smallBugBreedBoxNumber;
//        this.smallBoxWeight = smallBoxWeight;
    }

    public MiddleWormBox(String id, String batch, String wormGroup, String hatchBoxNumber, String smallBugBreedBoxNumber, String smallBugBreedBoxWeight) {
        this.id = id;
        this.batch = batch;
        this.group = wormGroup;
        this.tinyNum = hatchBoxNumber;
        this.smallNum = smallBugBreedBoxNumber;
        this.smallBoxWeight = Double.parseDouble(smallBugBreedBoxWeight);
    }

    public MiddleWormBox(String id, String batch, String wormGroup, String hatchBoxNumber, String smallBugBreedBoxNumber, String totalWeight, String netWeight, String boxQuality, String perBox, String serialId, String beginDate) {
        this.id = id;
        this.batch = batch;
        this.group = wormGroup;
        this.tinyNum = hatchBoxNumber;
        this.smallNum = smallBugBreedBoxNumber;
//        this.smallBoxWeight = Double.parseDouble(small_bug_breed_box_weight);
        this.totalWeight = Double.parseDouble(totalWeight);
        this.netWeight = Double.parseDouble(netWeight);
        this.boxQuality = Integer.parseInt(boxQuality);
        this.perBox = Double.parseDouble(perBox);
//        this.perBoxMaterial = Double.parseDouble(perBoxMaterial);
        this.serialId = serialId;
        this.beginDate = beginDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getTinyNum() {
        return tinyNum;
    }

    public void setTinyNum(String tinyNum) {
        this.tinyNum = tinyNum;
    }

    public String getSmallNum() {
        return smallNum;
    }

    public void setSmallNum(String smallNum) {
        this.smallNum = smallNum;
    }

    public Double getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(Double totalWeight) {
        this.totalWeight = totalWeight;
    }

    public Double getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(Double netWeight) {
        this.netWeight = netWeight;
    }

    public Integer getBoxQuality() {
        return boxQuality;
    }

    public void setBoxQuality(Integer boxQuality) {
        this.boxQuality = boxQuality;
    }

    public Double getPerBox() {
        return perBox;
    }

    public void setPerBox(Double perBox) {
        this.perBox = perBox;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getSerialId() {
        return serialId;
    }

    public void setSerialId(String serialId) {
        this.serialId = serialId;
    }

    public String getGoWhere() {
        return goWhere;
    }

    public void setGoWhere(String goWhere) {
        this.goWhere = goWhere;
    }

    public String getMiddleNum() {
        return middleNum;
    }

    public void setMiddleNum(String middleNum) {
        this.middleNum = middleNum;
    }

    public Double getMiddleQuality() {
        return middleQuality;
    }

    public void setMiddleQuality(Double middleQuality) {
        this.middleQuality = middleQuality;
    }

    public Double getEggQuality() {
        return eggQuality;
    }

    public void setEggQuality(Double eggQuality) {
        this.eggQuality = eggQuality;
    }

    public Double getTarget() {
        return target;
    }

    public void setTarget(Double target) {
        this.target = target;
    }

    public Double getFact() {
        return fact;
    }

    public void setFact(Double fact) {
        this.fact = fact;
    }

    public String getOutDate() {
        return outDate;
    }

    public void setOutDate(String outDate) {
        this.outDate = outDate;
    }

    public Double getPerBoxMaterial() {
        return perBoxMaterial;
    }

    public void setPerBoxMaterial(Double perBoxMaterial) {
        this.perBoxMaterial = perBoxMaterial;
    }

    public Double getSmallBoxWeight() {
        return smallBoxWeight;
    }

    public void setSmallBoxWeight(Double smallBoxWeight) {
        this.smallBoxWeight = smallBoxWeight;
    }

    @Override
    public String toString() {
//        if(this.tinyNum==null)
//        return this.batch + "-" + this.group + "-" + this.tinyNum + "-" + this.smallNum;
//            return this.batch + "-" + this.group + "-" + this.smallNum;
//        else
            return this.batch + "-" + this.group + "-" + this.tinyNum;
    }
}
